import { isPC } from '@/utils';
import { Route, Link, Redirect } from 'react-router-dom';
import redirectTo from 'umi';
export default (props: any) => {
  console.log(props);
  if (isPC()) {
    return <div>{props.children}</div>;
  } else {
    return <Redirect to="/mobile/home"></Redirect>;
  }
};
